package com.blank.javawebexam.service.Impl;


import com.blank.javawebexam.dao.StudentDao;
import com.blank.javawebexam.pojo.Student;
import com.blank.javawebexam.service.StudentService;
import lombok.Setter;

import java.util.List;

/**
 * @author blank 2020-12-3 下午 07:16
 * @version 1.0.0
 */


public  class StudentServiceImpl implements StudentService {

    @Setter
    private StudentDao studentDao;

    @Override
    public int delStudentById(int id) {
        return studentDao.deleteStudent(id);
    }

    @Override
    public List<Student> getList() {
        return studentDao.selectAll();
    }
}
